package com.mosai.alignpro.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 医生信息
 * Created by Rays on 2020/3/20.
 */
public final class DoctorInfo implements Serializable {
    public static final int DOCTOR_TYPE_DOCTOR = 1;
    public static final int DOCTOR_TYPE_ASSISTANT = 2;

    /**
     * status : 0
     * reason : string
     * regNumber : string
     * jobTitle : string
     * isPublic : true
     * doctorType : 1
     * parentId : 0
     * extendInfo : {"jobs":[{"hospital":"string","subject":"string"}]}
     * name : string
     * avatar : string
     * sex : 1
     * birthday : string
     * phoneNumber : string
     * email : string
     * height : 0
     * weight : 0
     * latitude : 0
     * longitude : 0
     * distance : 0
     * country : string
     * address : string
     * sexTxt : string
     * id : 0
     */

    private int status;
    private String reason;
    private String regNumber;
    private String jobTitle;
    private boolean isPublic;
    private int doctorType;
    private int parentId;
    private ExtendInfo extendInfo;
    private String name;
    private String avatar;
    private int sex;
    private String birthday;
    private String phoneNumber;
    private String email;
    private double height;
    private double weight;
    private double latitude;
    private double longitude;
    private double distance;
    private String country;
    private String address;
    private String sexTxt;
    private int id;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getRegNumber() {
        return regNumber;
    }

    public void setRegNumber(String regNumber) {
        this.regNumber = regNumber;
    }

    public String getJobTitle() {
        return jobTitle;
    }

    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    public boolean isIsPublic() {
        return isPublic;
    }

    public void setIsPublic(boolean isPublic) {
        this.isPublic = isPublic;
    }

    public int getDoctorType() {
        return doctorType;
    }

    public void setDoctorType(int doctorType) {
        this.doctorType = doctorType;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public ExtendInfo getExtendInfo() {
        return extendInfo;
    }

    public void setExtendInfo(ExtendInfo extendInfo) {
        this.extendInfo = extendInfo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSexTxt() {
        return sexTxt;
    }

    public void setSexTxt(String sexTxt) {
        this.sexTxt = sexTxt;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isAssistant() {
        return doctorType == DOCTOR_TYPE_ASSISTANT;
    }

    public static final class ExtendInfo implements Serializable {
        private List<Jobs> jobs;

        public List<Jobs> getJobs() {
            return jobs;
        }

        public void setJobs(List<Jobs> jobs) {
            this.jobs = jobs;
        }

        public static class Jobs implements Serializable {
            /**
             * hospital : string
             * subject : string
             */

            private String hospital;
            private String subject;

            public String getHospital() {
                return hospital;
            }

            public void setHospital(String hospital) {
                this.hospital = hospital;
            }

            public String getSubject() {
                return subject;
            }

            public void setSubject(String subject) {
                this.subject = subject;
            }
        }
    }
}
